Computes the perimeter of the polygon.
The perimeter is the sum of the lengths of all edges.
The perimeter of the polygon.